home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1997 August / Walnut Creek CDROM.7z / VOL_400 / 460_01 / YACL0160.ZIP / uidemo / calc / appwin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-29  |  809 b   |  39 lines

  1.  
  2.  
  3. #ifndef _appwin_h_ 
  4. #define _appwin_h_
  5.  
  6.  
  7. #include "base/integer.h"
  8.  
  9. #include "ui/dialog.h"
  10. #include "ui/label.h"
  11.  
  12. // ------------------------ Class AppWindow ---------------------------
  13.  
  14.  
  15. class AppWindow: public UI_Dialog {
  16.  
  17. public:
  18.     AppWindow ();
  19.     bool HandleChildEvent (const UI_Event& e);
  20.  
  21.  
  22. protected:
  23.     void           MakeDigitButtons(const UI_Rectangle& r);
  24.     void           MakeOpButtons   (const UI_Rectangle& r);
  25.     void           MakeRadixPanel  (const UI_Rectangle& r);
  26.     bool           DoOp (char op);
  27.     void           DoRadix (short radix);
  28.     void           DoClear ();
  29.     bool           DoDigit (short digit);
  30.     
  31.     UI_Label*      _label;
  32.     short          _radix;
  33.     char           _op;
  34.     long           _stack[2];
  35.     short          _top;
  36. };
  37.  
  38. #endif /* _appwin_h_ */
  39.